<form action="index.php?app=b2c&ctl=admin_member&act=saveBatchEdit" method="post" id="form01">
  <textarea name="filter" style="display:none"><{$filter}></textarea>
  <div class="division">
    <!-- 渠道商等级：<{input name="names" type="select"  value="names" options=$names}> -->
    渠道商等级：
    <select name="names">
      <{if $names}>
        <option selected="selected">请选择</option>
        <{foreach from=$names item=item}>
        <option><{$item}></option>
        <{/foreach}>
      <{/if}>
    </select>

  </div>
  <{area inject=".mainFoot"}>
   <div class="table-action">
        <{button label="保存" type="button" id="btn01" class="btn-primary"}>
   </div>
  <{/area}>
</form>
<script>
  $('btn01').addEvent('click',function(){
      if($$("option:selected").getText()=="请选择"){
        alert("请选择会员等级");
        // e.preventDefault();
        // e.stopPropagation();
        return false;
      }
      $('form01').store('target',{onComplete:function(re){
           re = JSON.decode(re);

           if(re.error)return;
           $('form01').getParent('.dialog').retrieve('instance').close();
      }});
      $('form01').fireEvent('submit',{stop:$empty});
  
  });
</script>
